<template>
    <el-pagination
      @size-change="SizeChange"
      @current-change="CurrentChange"
      :current-page="pageindex"
      :page-sizes="[10,20,30,40,50,60,70,80,90,100]"
      :page-size="pagesize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
      </el-pagination>
  </template>
  
  <script>
  export default {
      props:{
          pageindex:{
              type:Number, //类型
              required:true, //必要性
          },
          pagesize:{
              type:Number, //类型
              required:true, //必要性
          },
          total:{
              type:Number, //类型
              required:true, //必要性
          }
      },
      data(){
         return {
            rulesForm:{
                dept_name:[{ required : true, message:'请输入部门名称', trigger:'blur'}],
                parent_id:[{ required : true, message:'选择上级部门', trigger:'blur'}],
                order_num:[{ required : true, message:'请输入显示顺序', trigger:'blur'}],
            },
         }
      },
      methods:{
          CurrentChange(e){
              this.$emit('CurrentChange',e)
          },
          SizeChange(e){
              this.$emit('SizeChange',e)
          }
      }
  }
  </script>
  
  <style>
  
  </style>